import axios from 'axios'
import MockAdapter from 'axios-mock-adapter'
import API from '../api/api'
import fruits from '../api/product.data'
// var axios = require('axios')
// var MockAdapter = require('axios-mock-adapter')

const mock = new MockAdapter(axios)
mock.onGet(API.PROD_LIST).reply(200, {
  state: 'success',
  data: {
    fruits: fruits
  }
})
// console.log('mock')
// axios.get(API.PROD_LIST).then(res => {
//   console.log(res)
// })

// export default mock
